@REM --------------------------------------------------------------------
@REM File: Setup.bat
@REM --------------------------------------------------------------------

@SETLOCAL

@CALL "%VS90COMNTOOLS%vsvars32.bat"

@SET SolutionName="PackedDecimal Converter Solution.sln"
@SET AssemblyKeyFile=PackedDecimalConverter.snk

@ECHO.
@ECHO If key files is not found, will generate a new key file...

@IF NOT EXIST %AssemblyKeyFile% sn -k %AssemblyKeyFile%

@ECHO.
@ECHO Building the project...

@DevEnv %SolutionName% /build Debug /Out Build.log

@COPY bin\Debug\BizTalk.Mapper.CustomComponents.Converters.dll "..\..\..\..\Developer Tools\Mapper Extensions"

@ECHO.
@ECHO We need to GAC the .NET assembly that will be called
@GacUtil /if bin\Debug\BizTalk.Mapper.CustomComponents.Converters.dll

@ENDLOCAL

@PAUSE